package com.oa.admin.service;

import com.joneying.common.web.response.Resp;
import com.oa.admin.dto.UsingApplicationAddDTO;
import com.oa.admin.dto.UsingApplicationConditionDTO;
import com.oa.admin.vo.UsingApplicationListVO;
import com.oa.core.PageResult;
import com.oa.admin.entity.UsingApplication;
import com.baomidou.mybatisplus.service.IService;
import com.oa.core.exception.BusinessException;
import com.oa.core.exception.DataIsEmptyException;

/**
 * <p>
 * 用印申请表 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface IUsingApplicationService extends IService<UsingApplication> {
    /**
     * 自定义分页
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<UsingApplication> findList(Integer pageNum, Integer pageSize);

    /**
     * 根据id查询
     */
    UsingApplication findUsingApplicationById(String id);


    /**
     * 用印申请
     *
     * @param usingApplicationAddDTO
     * @return
     */
    Resp addUsingApplication(UsingApplicationAddDTO usingApplicationAddDTO) throws BusinessException, DataIsEmptyException;

    /**
     * 根据条件查询用印申请
     *
     * @param usingApplicationConditionDTO
     * @return
     */
    PageResult<UsingApplicationListVO> findUsingApplicationListVoByCondition(UsingApplicationConditionDTO usingApplicationConditionDTO) throws BusinessException, DataIsEmptyException;


    /**
     * 根据主键id查询用印申请详情
     *
     * @param id
     * @return
     */
    Resp findUsingApplicationDetailsById(String id) throws DataIsEmptyException;

    /**
     * 导出用印申请列表
     *
     * @return
     */
    Resp exportUsingApplicationList() throws BusinessException;
}
